﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!DOCTYPE html>
<html lang="en">

<head>
    <jsp:include page="/common.jsp"></jsp:include>
</head>

<body class="navbar-top">
<div class="modal-shiftfix">
    <jsp:include page="/menu.jsp"></jsp:include>
    <div class="container-fluid main-content">

        <div class="widget-container fluid-height clearfix mwi1200">
            <div class="heading clearfix">
                <i class="icon-reorder"></i> 修改库存明细:  <a href="javascript:;" class="pull-right"
                                                          onclick="history.go(-1);"><i class="icon-reply"></i></a>
            </div>
            <div class="widget-content padded clearfix">
                <form id="w0" class="form-horizontal" action="${pageContext.request.contextPath}/inventory/modify" method="post">
                    <input type="hidden" name="_csrf" value="UUlJQlQ4MDczPh8pbUFzTwAneRIZAF98DiM4JzhoWW8mHQcKJn5KAA==">
                     <input type="hidden" name="id" value="${productInventory.inventoryId}">
                    <div class="form-body">
                        <div class="form-group field-product-name required">
                            <label class="control-label col-sm-2" for="product-name">产品名称</label>

                            <div class="col-sm-8">
                                <input type="text" id="product-name" class="form-control" name="productProName"
                                        maxlength="60" placeholder="产品名称" value="${productInventory.product.proName}">
                            </div>
                            <div class="help-block help-block-error"></div>
                        </div>


                        <div class="form-group field-product-category_id required">
                            <label class="control-label col-sm-2" for="product-category_id">规格</label>

                            <div class="col-sm-8">
                                <input type="text" id="product-category_id" class="form-control" name="productProStandard"
                                        maxlength="60" placeholder="规格" value="${productInventory.product.proStandard}">
                            </div>
                            <div class="help-block help-block-error"></div>
                        </div>





                        <div class="form-group field-product-cost_price required">
                            <label class="control-label col-sm-2" for="product-cost_price">仓库</label>

                            <div class="col-sm-8">
                                <input type="text" id="product-cost_price" class="form-control"
                                       name="storeStoreName"  onfocus="$(this).onlypressnum();"
                                       placeholder="仓库" value="${productInventory.store.storeName}">
                            </div>
                            <div class="help-block help-block-error"></div>
                        </div>
                        <div class="form-group field-product-suggested_price required">
                            <label class="control-label col-sm-2" for="product-suggested_price">库存</label>

                            <div class="col-sm-8">
                                <input type="text" id="product-suggested_price" class="form-control"
                                       name="inventory"  onfocus="$(this).onlypressnum();"
                                       placeholder="库存" value="${productInventory.inventory}">
                            </div>
                            <div class="help-block help-block-error"></div>
                        </div>

                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label"></label>

                        <div class="col-lg-10">
                            <button type="submit" class="btn btn-primary">修改</button>
                            <button type="button" class="btn btn-default" onClick="history.go(-1);">返回</button>
                            <input type="hidden" name="reback"></div>
                        <!-- /.col -->
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
</body>

</html>
